#include <iostream>
#include <string>
using namespace std;

void MultiplySum(string &res, string &num1, int time, int offset){
    int promote = 0;
    int j = 0;
    for(int i=0, j=offset; i<num1.length(); ++i){
        while(res.length() <= j){
            res.append("0");
        }
        int sum = (num1[i] - '0') * time + promote + (res[j] - '0');
        promote = sum/10;
        sum %= 10;
        res[j] = '0' + sum;
        ++j;
    }

    while(promote > 0){
        while(res.length() <= j){
            res.append("0");
        }

         int sum = (res[j] - '0') + promote;
        promote = sum/10;
        sum = sum%10;
        res[j] = sum + '0';
        ++j;
    }
}


string multiply(string num1, string num2) {
    // Start typing your C/C++ solution below
    // DO NOT write int main() function
    if(num1.length() == 0 || num2.length() ==0)
        return "0";

    num1 = string(num1.rbegin(), num1.rend());
    num2 = string(num2.rbegin(), num2.rend());

    string res;
    res.append("0");
    for(int i=0; i<num2.length(); ++i){
        MultiplySum(res, num1, num2[i]-'0', i);
    }
    int index = res.find_last_not_of('0');
    if(index < 0){
        return "0";
    }
    res = res.substr(0, index+1);
    return string(res.rbegin(), res.rend());
}



int main(){
    //cout<<multiply("9","9");

    int j=0;
    for(int i=0, j=10; i<2; ++i, ++j){
        printf("%d %d\n", i, j);
    }
    printf("%d\n", j);

    return 0;
}